From 71710a8321ad082aa3861fd5ca9e8e6337cda8cc Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Thu, 30 Nov 2006 14:46:45 +0000 Subject: [PATCH] [XEND] Fix hidden vcpu state when calling xm-list Stores the vcpus number in xenstore so it is preserved on xend restart. Signed-off-by: Alastair Tse --- tools/python/xen/xend/XendDomainInfo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index fdf5dc4d71..9581a9621e 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -847,7 +847,9 @@ class XendDomainInfo: def setVCpuCount(self, vcpus): self.info['vcpu_avail'] = (1 << vcpus) - 1 + self.info['vcpus_number'] = vcpus self.storeVm('vcpu_avail', self.info['vcpu_avail']) + self.storeVm('vcpus', self.info['vcpus_number']) self._writeDom(self._vcpuDomDetails()) def getLabel(self): -- 2.30.2